﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AirTickets
{
    public class ListaDeAviones: SingletonGenericList<Avion>
    {
        public ListaDeAviones()
            : base()
        {
            if (_list.Count == 0)
            {
                _list.Add(new Avion_A340_SingleClass());
                _list[_list.Count - 1].Matricula = "EC-001";

                _list.Add(new Avion_A340_SingleClass());
                _list[_list.Count - 1].Matricula = "EC-002";

                _list.Add(new Avion_A340_SingleClass());
                _list[_list.Count - 1].Matricula = "EC-003";

            }
        }
    }
}
